package com.atguigu.listener;

import javax.servlet.http.HttpSessionBindingEvent;
import javax.servlet.http.HttpSessionBindingListener;

public class SessionBindingListener implements HttpSessionBindingListener {
    //绑定
    @Override
    public void valueBound(HttpSessionBindingEvent event) {
        //HttpSessionBindingListener.super.valueBound(event);
        System.out.println("绑定");
    }

    @Override
    public void valueUnbound(HttpSessionBindingEvent event) {
        //HttpSessionBindingListener.super.valueUnbound(event);
        System.out.println("解绑");
    }
}
